package bite_11_29;
import java.util.Scanner;

public class Test {

    public static void func(String str){
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < str.length(); i++) {
            char c = str.charAt(i);
            if(!sb.toString().contains(c+"")){
                sb.append(c);
            }
        }
        System.out.println(sb);
    }
    public static void main1(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextLine()){
            String str = scanner.nextLine();
            func(str);
        }
    }

    public static void func2(String str){
        StringBuilder sb = new StringBuilder();
        int[] checks = new int[58];
        for (int i = 0; i < str.length(); i++) {
            char c = str.charAt(i);
            if(checks[c - 65] == 0){
                checks[c - 65] = 1;
                sb.append(c);
            }
        }
        System.out.println(sb);
    }
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextLine()){
            String str = scanner.nextLine();
            func2(str);
        }
    }

}
